{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Windows 系统使用笔记\n",
    "\n",
    "在Windows系统的使用中，会遇到一些疑难问题或较少碰到的问题。记录如下："
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 在系统启动时自动执行某个任务\n",
    "\n",
    "可在程序启动菜单中，新建bat批处理文件，达到开机自运行的效果。\n",
    "\n",
    "1. 打开启动文件夹。打开类似`C:\\Users\\hdcb\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup`的目录，或者运行`shell：startup`打开启动文件夹。\n",
    "1. 在该目录中新建bat文件，或者放入可执行文件。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 在bat中取得日期和时间\n",
    "\n",
    "可通过`%date%`和`%time%`取得，还可以通过类似`%time:~0,2%:%time:~3,2%-%DATE:~0,10%`的方式进行精确组合。"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "JavaScript",
   "language": "javascript",
   "name": "jslab"
  },
  "language_info": {
   "file_extension": ".js",
   "mimetype": "text/javascript",
   "name": "javascript",
   "version": ""
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
